package com.atguigu.gmall.user.service;

import com.atguigu.gmall.model.user.UserAddress;
import com.atguigu.gmall.model.user.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author xgc
 * @create 2021-08-16 17:51
 */
public interface UserService extends IService<UserInfo> {
    UserInfo login(UserInfo info);

    Map<String, Object> hanleLoginSuccess(UserInfo userInfo, HttpServletRequest request);

    void loginOut(String token);

    List<UserAddress> getUserAddressListByUserId(String userId);
}
